<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit|ie-comp|ie-stand">  
<title>企业设置</title>
<script src="/res/js/common/jquery.1.9.1.min.js"></script>
<script src="/res/js/common/common.js"></script>
<link href="/res/css/respective/company/aztCom.css" rel="stylesheet">
<style> 
</style>
</head>
<body>   
[#assign menucode="companyInfo"/]
	<div class="coverDiv"></div>
	<div class="warp">
		[#include "/front/common/front_headAzt.html"]
		<div class="backcontent">
			[#include "/front/common/front_leftAzt.html"]
			[#if user??]
				[#assign hasCompany = false]
				[#if user.company??][#assign hasCompany = true][#assign company = user.company][/#if]
			<form  id="baseInfo">
				[#if hasCompany] <input type="hidden" name="id" value="${company.id!}" id="company_id" />[/#if]
			<div class="back-main">
				<div class="mainContent">
		<div class="mainContentWhite">
			<h1>企业资料
				<p class="itermOp">  
					<em>所有带<span>*</span>为必填项 </em>
				</p>
			</h1>
			<hr>
			[#if hasCompany && company.auditState != 3]
				[#if company.auditState == 0 || company.auditState == 1]
					<div class="noPassReson">
						 <h1>资料审核中</h1>
						 <h2 style="background: none;">您的企业资料正在审核中，请耐心等待，我们将在30分钟内进行审核。[#if (company.firstPass!0) == 1][@rule_content code="company_authentic"/][/#if]如有疑问，请致电400-848-1365</h2>
					</div>
				[/#if]
				[#if company.auditState == 2]
					<div class="noPassReson">
						 <h1>企业资料修改被退回</h1>
						 <h2 style="background: none;">您的企业资料修改被系统退回[#if company.auditOpinion?? && company.auditOpinion !='']，原因：${company.auditOpinion!''}[/#if]</h2>
					</div>
				[/#if]
				[#if company.auditState == 4]
					<div class="noPassReson">
						 <h1>企业已禁用</h1>
						 <h2 style="background: none;">抱歉，您的企业已被禁用。如有疑问，请咨询安装通客服400-848-1365</h2>
					</div>
				[/#if]
			[/#if]
			<h2 class="baseH2">基本信息
				[#if hasCompany]<span class="baseInfoEdit">修改</span>[/#if]
			</h2> 
			<div>
				<div class="logoIcon" id="upLogo">
					<div style="position: relative;" >
						<img src="[#if company ?? && company.companyInfo?? && company.companyInfo.logo?? && company.companyInfo.logo != '']${company.companyInfo.logo!'/res/images/respective/company/upLogo_11.jpg'}[#else]/res/images/respective/company/upLogo_11.jpg[/#if]" id="companyLogoShow"
								style="max-height: 90px;max-width: 90px;"/>
						<input type="hidden" name="companyInfo.logo" value="[#if company ?? && company.companyInfo??]${company.companyInfo.logo!}[/#if]" id="companyLogo">
						<div id="fileUpload">上传Logo</div>
					</div>
				</div> 
				<div style="display: inline-block;vertical-align: top;">
					<div class="logoInfo"> 
						<h6>登录名：<strong>[#if user.mobile??]${user.hideMobile!''}[#else]${user.hideEmail!''}[/#if]</strong></h6>
						<h6>资料完整度：
							<em class="prograss"><span class="orangeColor" style="width: ${per!}%"></span><span class="grayColor" style="width: ${100 - per}%"></span></em>
							<dfn>${per!}%</dfn>
						</h6>
					</div>
				</div>
			</div> 
			<hr></hr>
			<div class="lableIterm">
				<label><span>*</span>公司名称：</label>
				<input  type="text" placeholder="请填写营业执照上的公司名称" maxlength="100" id="companyNameId" required
						name="companyName" class="infoEdit companyName" [#if hasCompany]value="${company.companyName!}"	style="display: none;" [/#if]/>
				[#if hasCompany] <label	class="control-label detailLab showInfo">${company.companyName!}</label>[/#if]
			</div>
			<div class="lableIterm">
				 <label><span>*</span>身份选择：</label>
				 <div [#if hasCompany]style="display: none;"[/#if] class="identityChoise [#if hasCompany && company.auditState == 0]infoEdit[/#if]" style="display:inline-block;">
					 <input type="radio" name="idEntity" _type="ispurchaser"  [#if hasCompany && company.ispurchaser > 0 && company.isprovider == 0]checked[/#if] id="idRadio1"><label for="idRadio1" class="idEyLabel">采购商</label>
					 <input type="radio" name="idEntity" _type="isprovider" [#if hasCompany && company.ispurchaser == 0 && company.isprovider > 0]checked[/#if] id="idRadio2"><label for="idRadio2" class="idEyLabel">供应商</label>
					 <input type="radio" name="idEntity"  [#if hasCompany && company.ispurchaser > 0 && company.isprovider > 0]checked[/#if] id="idRadio3"><label for="idRadio3" class="idEyLabel" id="bothIdentity">两者都是 </label>
					 <input type="hidden" name="ispurchaser" value="[#if hasCompany]${company.ispurchaser!}[/#if]" id="ispurchaser" />
					 <input type="hidden" name="isprovider"  value="[#if hasCompany]${company.isprovider!}[/#if]"  id="isprovider" />
				 </div>
				[#if hasCompany]
					<label class="control-label detailLab [#if hasCompany && company.auditState == 0]showInfo[#else] showInfoNoHide[/#if]">
						[#if hasCompany && company.ispurchaser > 0 && company.isprovider== 0]采购商
						[#elseif hasCompany && company.ispurchaser == 0 && company.isprovider > 0]供应商
						[#elseif hasCompany && company.ispurchaser > 0 && company.isprovider > 0]采购商、供应商 [/#if]
					</label>
				[/#if]
			</div>
			<div class="lableIterm providerMode" [#if (hasCompany && company.isprovider == 0) || !hasCompany]style="display: none;"[/#if]>
				 <label><span>*</span>经营模式：</label>
				[#if hasCompany]
					[#if company.isprovider > 0 && company.providerMode??]
						<label class="control-label detailLab [#if company.auditState == 0]showInfo[#else] showInfoNoHide[/#if]">[#if company.providerMode == 1]生产厂家[#elseif company.providerMode == 2]代理商 [/#if]</label>
					[/#if]
				[/#if]
				 <div [#if hasCompany]style="display: none;"[#else]style="display: inline-block;"[/#if] [#if hasCompany && company.auditState == 0]class="infoEdit"[/#if]>
					 <input type="radio" name="providerMode" value="1" [#if hasCompany && company.providerMode??  && company.providerMode == 1]checked[/#if] id="bType1"><label for="bType1" class="idEyLabel detailLab ">生产厂家</label>
					 <input type="radio" name="providerMode" value="2" [#if hasCompany && company.providerMode??  && company.providerMode == 2]checked[/#if] id="bType2"><label for="bType2" class="idEyLabel detailLab " id="modelDl">代理商</label>
				 </div>
			</div>
			<div class="lableIterm">
				 <label><span>*</span>注册地址：</label>
					<div class="ppSelect infoEdit" [#if hasCompany]style="display: none;"[/#if]>
						<select id="reg_province" required value="[#if hasCompany && company.companyInfo?? && company.companyInfo.regProvince??]${company.companyInfo.regProvince!}[/#if]"
								name="companyInfo.regProvince">
						</select>
					</div>
					 <div class="ppSelect infoEdit" [#if hasCompany]style="display: none;"[/#if]>
						<select id="reg_city"  required value="[#if hasCompany && company.companyInfo?? && company.companyInfo.regCity??]${company.companyInfo.regCity!}[/#if]"
								name="companyInfo.regCity">
						</select>
					</div>
					<div class="ppSelect infoEdit" [#if hasCompany]style="display: none;"[/#if]>
						<select id="reg_district"  required value="[#if hasCompany && company.companyInfo?? && company.companyInfo.regArea??]${company.companyInfo.regArea!}[/#if]"
								name="companyInfo.regArea">
						</select>
					</div>
					<p class="detailAddr infoEdit" [#if hasCompany]style="display: none;"[/#if]>
						<input style="width: 630px;" type="text" placeholder="详细地址" required [#if hasCompany]value="${company.companyInfo.regAddress!}"[/#if] name="companyInfo.regAddress"  id="regAddress"/>
					</p>
				[#if hasCompany]
					<label class=" control-label detailLab showInfo">
						[#if company.companyInfo.regProvinceArea??]${company.companyInfo.regProvinceArea.name!}[/#if]
						[#if company.companyInfo.regCityArea??]${company.companyInfo.regCityArea.name!}[/#if]
						[#if company.companyInfo.regAreaArea??]${company.companyInfo.regAreaArea.name!}[/#if]
						${company.companyInfo.regAddress!}
					</label>
				[/#if]
			</div>
			<div class="lableIterm">
				 <label><span>*</span>营业地址：</label>
				 <div class="ppSelect infoEdit" [#if hasCompany]style="display: none;"[/#if]>
					 <select  id="bus_province"  required  value="[#if hasCompany && company.companyInfo?? && company.companyInfo.businessProvince??]${company.companyInfo.businessProvince!}[/#if]"
							 name="companyInfo.businessProvince">
                    </select>
                </div>
                 <div class="ppSelect infoEdit" [#if hasCompany]style="display: none;"[/#if]>
					 <select id="bus_city" required value="[#if hasCompany && company.companyInfo?? && company.companyInfo.businessCity??]${company.companyInfo.businessCity!}[/#if]"
							 name="companyInfo.businessCity">
                    </select>
                </div>
                <div class="ppSelect infoEdit" [#if hasCompany]style="display: none;"[/#if]>
					<select id="bus_district"  required	value="[#if hasCompany && company.companyInfo?? && company.companyInfo.businessArea??]${company.companyInfo.businessArea!}[/#if]"
							name="companyInfo.businessArea">
                    </select>
                </div>
                <label class="addrIntro infoEdit" [#if hasCompany]style="display: none;"[/#if]>同注册地址</label>
                <p class="detailAddr infoEdit" [#if hasCompany]style="display: none;"[/#if]>
                	<input style="width: 630px;" type="text" placeholder="详细地址" required [#if hasCompany]value="${company.companyInfo.businessAddress!}"[/#if] name="companyInfo.businessAddress" id="busAddress"/>
                </p>
				[#if hasCompany]
					<label class=" control-label detailLab showInfo">
						[#if company.companyInfo.businessProvinceArea??]${company.companyInfo.businessProvinceArea.name!}[/#if]
						[#if company.companyInfo.businessCityArea??]${company.companyInfo.businessCityArea.name!}[/#if]
						[#if company.companyInfo.businessAreaArea??]${company.companyInfo.businessAreaArea.name!}[/#if]
						${company.companyInfo.businessAddress!}
					</label>
				[/#if]
			</div>
			<div class="botCont">
			<div class="lableIterm">
				<label><span>*</span>注册资本：</label>
				<i style="position: relative;[#if hasCompany]display: none;[/#if]" class="infoEdit">
					<input type="text" required contentType="numeric" id="inputEmail3" placeholder="请如实填写，无需验资填写0"
						   [#if hasCompany]value="${company.companyInfo.registercapital!}"[/#if] name="companyInfo.registercapital" />
					<i class="danWei">万</i>
				</i>
				<div class="ppSelect infoEdit" style="width: 100px; margin-left: 10px;[#if hasCompany]display: none;[/#if]">
                    <select name="companyInfo.currency" style="color: #b9b9b9;">
						<option value="1" [#if hasCompany && company.companyInfo.currency==1]selected[/#if]>人民币</option>
						<option value="2" [#if hasCompany && company.companyInfo.currency==2]selected[/#if]>美元</option>
                    </select>
                </div>
				[#if hasCompany]
					<input type="hidden" name="companyInfo.company.id" value="${company.id!}" />
					<label class="control-label detailLab showInfo">
						${company.companyInfo.registercapital!}万${(company.companyInfo.currency== 1)?string('人民币','美元')}
					</label>
				[/#if]
			</div>
			</div>
			<div class="lableIterm">
				<label><span>*</span>法人代表：</label>
				<input type="text" maxlength="64" required  placeholder="请填写法人代表名称" class="infoEdit" [#if hasCompany] value="${company.companyInfo.legalperson!}" style="display: none;" [/#if] name="companyInfo.legalperson" />
				[#if hasCompany]<label class="control-label detailLab showInfo">${company.companyInfo.legalperson!}</label>[/#if]
			</div>
			<div class="lableIterm">
				<label><span>*</span>营业执照：</label>
				 <div class="addZhiZhao infoEdit" [#if hasCompany]style="display: none;"[/#if] id="licenseUpload">
				 	<img style="width: 190px;" src="[#if hasCompany]${company.companyInfo.businessLicense!'/res/images/respective/company/addPic_03.png'}[#else]/res/images/respective/company/addPic_03.png[/#if]" alt="" id="licenseShow"/>
					<input name="companyInfo.businessLicense" type="hidden" value="[#if hasCompany]${company.companyInfo.businessLicense!}[/#if]" id="businessLicense"/>
				 </div>
				 <div class="zhiZhao infoEdit" [#if hasCompany]style="display: none;"[/#if]>
				 	<h5>请上传营业执照扫描件</h5>
				 	<h6>支持JPG、PNG、GIF、BMP格式的图片文件，图片大小不超过5M</h6>
				 </div>
				 [#if hasCompany] <label class="control-label detailLab showInfo" style="vertical-align: top;"><img style="width: 190px;" src="${company.companyInfo.businessLicense!}"></label>[/#if]
			</div>
			<div class="lableIterm">
				<label><span>*</span>企业授权证明：</label>
				<div style="display: inline-block;[#if hasCompany]display: none;[/#if]" class="infoEdit">
					<img style="max-width: 190px;vertical-align: top;" src="[#if hasCompany]${company.companyInfo.authCertify!''}[/#if]" alt="" id="authShow"/>
					[#if !hasCompany || !(company.companyInfo.authCertify??) || (company.companyInfo.authCertify == '')]<button class="upFile" type="button" id="uploadAuth">上传文件</button>[/#if]
					<small id="authSmall">请<a class="downSQ" href="http://img2.zht360.com/aztV2/admin/ueditor/jsp/upload/file/20170328/1490701363082046626.doc" target="_blank" >下载企业授权证明模版</a>，填完整并加盖公章后上传。</small>
					<input name="companyInfo.authCertify" type="hidden" value="[#if hasCompany]${company.companyInfo.authCertify!}[/#if]" id="authCertify"/>
				</div>
				<dfn class="picXZ infoEdit" [#if hasCompany]style="display: none;"[/#if]>支持JPG、PNG、GIF、BMP格式的图片文件，图片大小不超过5M</dfn>
 
				[#if hasCompany] <label class="control-label detailLab showInfo" style="vertical-align: text-top;">[#if company.companyInfo.authCertify??]<img style="width: 190px;vertical-align: top;" src="${company.companyInfo.authCertify!}">[/#if]</label>[/#if]
 
			</div>
			<div class="lableIterm">
				<label>税号：</label>
				<input type="text" class="infoEdit" contentType="int" placeholder="请填写税务号"
					   [#if hasCompany]value="${company.companyInfo.taxNumber!}" style="display: none;" [/#if]  name="companyInfo.taxNumber" />
				[#if hasCompany]
					<label class="control-label detailLab showInfo">${company.companyInfo.taxNumber!}</label>
				[/#if]
			</div>
			<div class="lableIterm">
				<label>公司简介：</label> 
				<div class="jianJie" [#if hasCompany]style="display: none;"[/#if]>
					<div class="infoEdit" style="position: relative;">
					<textarea rows="4" cols="100" placeholder="请填写公司简介" id="infoTextArea" name="companyInfo.companyInfo" maxlength="200">[#if hasCompany]${company.companyInfo.companyInfo!}[/#if]</textarea>
					<p class="textYueShu" id="sizeEm">
						[#if hasCompany]${company.companyInfo.companyInfo?length}[#else]0[/#if]/200 
					</p>
					</div>
				</div>
					[#if hasCompany]<labeL class="detailLab showInfo" style="max-width: 800px;vertical-align: top;line-height: 2;">${company.companyInfo.companyInfo!}</labeL>[/#if]
			</div> 
			<div class="lableIterm infoEdit" [#if hasCompany]style="display: none;"[/#if]>
				<label></label> 
				<div class="opButt"> 
					 <button class="baoCun baseSave" form="baseInfo" type="button">保存</button>
					 [#if hasCompany]<button class="quXiao baseCancel" type="reset">取消</button>[#else][/#if]
				</div> 
			</div>
			</form>
			[#if hasCompany]
			<h2>经营领域 
			</h2>
			<h3 class="categoryH3">
				<img src="/res/images/respective/company/lightTip.png"/>
				<em>请认真选择经营领域，我们将通过您的选择给您推送相关信息（比如：采购商机、招标信息等）</em>
                <span class="baseInfoEdit">修改</span>
			</h3>
			<div class="lableIterm">
				<label><span>*</span>主营类目：</label>
                <div class="areaShowInfo"
                     style="padding-left: 0px; display: [#if hasCompany && company.companyCategorys?? && company.companyCategorys?size > 0] inline-block;width: 850px;vertical-align: top;[#else]none[/#if]">
                    [#assign hasCategoryids = ","]
                    [#assign ccContent = '']
                    [#if hasCompany && company.companyCategorys?? && company.companyCategorys?size > 0]
						[#list company.companyCategorys as cc]
							[#assign ccContent = ccContent + cc.categoryName! ]
							[#if cc_index <	(company.companyCategorys?size - 1)]
								[#assign ccContent = ccContent + ',' ]
							[/#if]
							[#assign hasCategoryids = hasCategoryids + cc.category.id + ","]
							<label class="detailLab ppLabel">${cc.categoryName!}</label>
                    	[/#list]
                    [#else]
                    	<!--[#assign ccContent = '请选择经营系统']-->
                    [/#if]
                </div>

				<div class="ppSelect tanKuang areaInfoEdit" id="categoryShow" [#if hasCompany && company.companyCategorys?? && company.companyCategorys?size > 0]style="display: none;"[/#if]>
					<input placeholder="请选择经营系统" value="${ccContent!}"/>
					<div class="kuangCont multipeCheck">
						<div style="width: 480px;margin: 0 auto;padding: 15px 0;" class="divCategory">
							<label class="nochoose all [#if cats?? && company.companyCategorys?? && company.companyCategorys?size == cats?size]choose[/#if]"> 全选 </label>
							<hr></hr>
							[#if cats??]
								[#list cats as cat]
									<label class="nochoose [#if hasCategoryids?contains(','+cat.id+',')]choose[/#if]" _value="${cat.id!}"> ${cat.name!} </label>
								[/#list]
							[/#if]
						</div>
						<div class="checkConfirm tanConfirm">
							<a>确认</a>
						</div>
					</div>
				</div>


			</div>
			<div class="lableIterm">
				<label><span>*</span>应用行业：</label> 
				<div class="areaShowInfo"
					 style="padding-left: 0px; display: [#if hasCompany && company.companyApplifields?? && company.companyApplifields?size > 0] inline-block;width: 600px;vertical-align: top;[#else]none[/#if]">
					[#assign hasApps = ","]
					[#assign appContent = ""]
					[#if hasCompany && company.companyApplifields?? && company.companyApplifields?size > 0]
						[#list company.companyApplifields as cas]
							[#assign appContent	= appContent + cas.applifieName! ]
							[#if cas_index < (company.companyApplifields?size - 1)]
								[#assign appContent = appContent + ',' ]
							[/#if]
							[#assign hasApps = hasApps + cas.applifieCode + ","]
							<label class="detailLab ppLabel">${cas.applifieName!}</label>
						[/#list]
					[#else]
						<!--[#assign appContent = "请选择应用行业"]-->
					[/#if]
				</div>

				<div class="ppSelect tanKuang areaInfoEdit" id="appFileShow" [#if hasCompany && company.companyApplifields?? && company.companyApplifields?size > 0]style="display: none;"[/#if]>
					<input placeholder="请选择应用行业" value="${appContent!}"/>
					<div class="kuangCont multipeCheck ">
						<div style="width: 480px;margin: 0 auto;padding: 15px 0;" class="divField">
							<label class="nochoose all [#if applifield?? && company.companyApplifields?? && company.companyApplifields?size == applifield?size]choose[/#if]"> 全选 </label>
							<hr></hr>
							[#if applifield?? ]
								[#list applifield as afield]
									<label class="nochoose [#if hasApps?contains(','+afield.code+',')]choose[/#if]" _value="${afield.code!}"> ${afield.name!} </label>
								[/#list]
							[/#if]
						</div>
						<div class="checkConfirm tanConfirm">
							<a>确认</a>
						</div>
					</div>
				</div>
			</div>
			[#if provinces ??]
			<div class="lableIterm">
				<label><span>*</span>经营地区：</label>
				<div class="areaShowInfo"
					 style="padding-left: 0px; display: [#if hasCompany && company.companyApplifields?? && company.companyApplifields?size > 0] inline-block;width: 600px;vertical-align: top;[#else]none[/#if]">
					[#assign hasBus = ","]
					[#assign busContent = ""]
					[#if hasCompany && company.companyBusinesses?? && company.companyBusinesses?size > 0]
						[#list company.companyBusinesses as cas]
							[#assign busContent	= busContent + cas.provinceName! ]
							[#if cas_index < (company.companyBusinesses?size - 1)]
								[#assign busContent = busContent + ',' ]
							[/#if]
							[#assign hasBus = hasBus + cas.provinceCode + ","]
							<label class="detailLab ppLabel">${cas.provinceName!}</label>
						[/#list]
					[#else]
						<!--[#assign appContent = "请选择应用行业"]-->
					[/#if]
				</div>

				<div class="ppSelect tanKuang areaInfoEdit" id="busFileShow" [#if hasCompany && company.companyCategorys?? && company.companyCategorys?size > 0]style="display: none;"[/#if]>
					<input placeholder="请选择经营地区" value="${busContent!}"/>
					<div class="kuangCont multipeCheck ">
						<div style="width: 480px;margin: 0 auto;padding: 15px 0;" class="divBuss">
							<label class="nochoose all [#if provinces?? && company.companyBusinesses?? && company.companyBusinesses?size == provinces?size]choose[/#if]"> 全选 </label>
							<hr></hr>
							[#if provinces?? ]
								[#list provinces as province]
									<label class="nochoose [#if hasBus?contains(','+province.code+',')]choose[/#if]" _value="${province.code!}"   _name="${province.name!}"> ${province.name!} </label>
								[/#list]
							[/#if]
						</div>
						<div class="checkConfirm tanConfirm">
							<a>确认</a>
						</div>
					</div>
				</div>
			</div>
			[/#if]

			<div class="lableIterm areaInfoEdit"  [#if hasCompany && company.companyCategorys?? && company.companyCategorys?size > 0]style="display: none;"[/#if]>
				<label style="visibility: hidden;"></label>
				<button class="opJingYing" id="areaSave" type="button">保存</button>
				[#if hasCompany && company.companyCategorys?? && company.companyCategorys?size > 0]
					<button class="opJingYing cancleJingYing" type="button" id="areaCancel" onclick="areaShow();">取消</button>
				[/#if]
			</div>
			 <!--<h1 style="margin-top: 30px;">财务信息 -->
			<!--</h1>-->
			<!--<hr></hr>-->
			<!--<h3>-->
				<!--<img src="/res/images/respective/company/lightTip.png">-->
				<!--<em>请添加财务信息，订单支付时将需要使用</em>-->
			<!--</h3>-->
			<!--<div>-->
				<!--<ul class="bankAdd">-->
						<!--[#if company.companyBanks ??]-->
							<!--[#list company.companyBanks as bank]-->
								<!--<li>-->
									<!--<div style="height: 169px;width: 248px;">-->
										<!--<div style="padding: 20px 10px 10px 10px;">-->
											<!--<img src="/res/images/respective/company/${bank.bankCode!}.jpg" alt="" />-->
											<!--<span class="bankName">-->
														<!--<big>${bank.bankName!}</big>-->
														<!--<p>-->
															<!--<small>[#if bank.bankCardNumber != '' && bank.bankCardNumber?length > 6]******${bank.bankCardNumber?substring(bank.bankCardNumber?length - 6)}[#else]${bank.bankCardNumber!}[/#if]</small>-->
														<!--</p>-->
													<!--</span>-->
											<!--<img src="${(bank.bankType == 1)?string('/res/images/respective/company/bankType_03.png' ,'/res/images/respective/company/bankType_05.png')}" alt="${(bank.bankType == 1)?string('结算户' ,'基本户')}" />-->
										<!--</div>-->
										<!--<p class="daMing" style="">${bank.creditName!}</p>-->
										<!--<div class="opOuter">-->
												<!--[#if bank.ifDefault?? && bank.ifDefault == 0]<a href="javascript:void(0);" onclick="defauHu(${bank.id!});return false;">设为默认账户</a>[#else]<span class="defauHu">默认账户</span>[/#if]-->
											<!--&lt;!&ndash;[#if bank.openingBankCode??]&ndash;&gt;-->
											<!--&lt;!&ndash;[#else]&ndash;&gt;-->
												<!--&lt;!&ndash;请重新编辑&ndash;&gt;-->
											<!--&lt;!&ndash;[/#if]&ndash;&gt;-->
											<!--<a style="float:right;margin-left: 5px;" href="javascript:void(0)" onclick="delBank(${bank.id!});">删除</a>-->
											<!--<a style="float:right;" href="javascript:void(0)" onclick="hanleBankInfo(${bank.id!})">编辑</a>-->
										<!--</div>-->
									<!--</div>-->
								<!--</li> -->
								<!--[#if (bank_index + 1) % 4 != 0]-->
                                    <!--<li class="navBarLi1"></li>-->
								<!--[/#if]-->
 <!---->
							<!--[/#list]-->
						<!--[/#if]-->
						<!--<li class="addBankOp" style="border: none;">-->
							<!--<div class="xuKuang">-->
							<!--<div style="width: 224px;height: 161px;background-color: #F8F8F8;text-align: center;" onclick="hanleBankInfo()">-->
								<!--<p style="font-size: 60px;color: #989898;padding-top: 20px;">+</p>-->
								<!--<p style="font-size: 14px;color: #666666;font-weight: bold;">添加财务信息</p>-->
							<!--</div>-->
							<!--&lt;!&ndash; <img src="/res/images/respective/company/bankInfo_03.png" alt="" /> &ndash;&gt;-->
							<!--</div>-->
						<!--</li>-->
				<!--</ul>-->
			<!--</div>-->
			 <h1 style="margin-top: 30px;">企业资质
			</h1>
			<hr></hr>
			<div>
				<ul class="ziZhiAdd">
					[#if company.companyAssets??]
					[#list company.companyAssets as ca] 
						<li>
							<p class="xuKuang" style="height: 190px;display: table-cell;vertical-align: middle;width: 200px;text-align: center;" [#if ca.attachfile??]onclick="window.open('${ca.attachfile!}');"[/#if]>
							<img src="${ca.attachfile!'/res/images/respective/company/upLogo_11.jpg'}" alt="企业资质" style="max-height: 190px;max-width: 190px;"/>
							</p>
							<div class="ziZhiIntro" _caId = "${ca.id!}" _isPur="${company.ispurchaser!}" _isPro = "${company.isprovider!}">
								<h5 title="[#if ca.name??][#if ca.name?length > 4]${ca.name?substring(4)}[#else]${ca.name}[/#if][#else]暂无[/#if]">
									<strong>
										<!--${(ca_index + 1) % 5}-->
										资质名称：</strong>[#if ca.name??][#if ca.name?length > 4][@content_cut content=ca.name?substring(4) len=10 ending="..."/][#else]${ca.name}[/#if][#else]暂无[/#if]
								</h5>
								<h5 class="opComp">
									[#if ca.level?? && ca.level != '']<strong>级别：</strong>${ca.level!}[/#if]
								</h5>
							</div>
						</li>
						[#if (ca_index + 1) % 5 != 0]
						<li class="navBarLi"></li>
						[/#if]
					[/#list]
					[/#if]
					<li class="addZiZhiLi">
						
						<div class="xuKuang">
							<div style="width: 191px;height: 190px;background-color: #F8F8F8;text-align: center;" onclick="hanleCompanyAsset(null , ${company.ispurchaser!} , ${company.isprovider!})">
								<p style="font-size: 60px;color: #989898;padding-top: 40px;">+</p>
								<p style="font-size: 14px;color: #666666;font-weight: bold;">添加企业资质</p>
							</div>
							<!-- <img src="/res/images/respective/company/addZi_03.png" alt="" onclick="hanleCompanyAsset(null , ${company.ispurchaser!} , ${company.isprovider!})"/>  -->
						</div> 
					</li>
				</ul>
			</div>
			</div>
		</div>
			</div>  
		</div> 
		[/#if]

	<script src="/res/js/common/newAddress.js"></script>
	<script src="/res/js/respective/company/aztCom.js"></script> 
	<script type="text/javascript" src="/res/third/layer/layer.js"></script>
	<script type="text/javascript" src="/res/third/layer/layer.extends.js"></script>
	<script type="text/javascript">
			$(function(){
				new newAddress('reg' , 'select' , 1 ,  1 , 3  [#if hasCompany],1[/#if]);
				new newAddress('bus' , 'select' , 1 , 1 , 3  [#if hasCompany],1[/#if]);

				$("#upLogo").on('click' , function () {
					layer.fileManager({callback : function(data){
						if(data.length > 0){
							$("#companyLogoShow").attr("src" , data[0].url);
							$("#companyLogo").val(data[0].url);
							if($("#company_id").length > 0 && $("#company_id").val() != ''){
								$.ajax({
									url : '/company/savelogo',
									type : 'post' ,
									dataType : 'json' ,
									data :{logoUrl : data[0].url , companyId : $("#company_id").val()},
									success : function (res) {
										if(res.success){
											layer.msg("企业logo已更新" , {time:1000});
										}else{
											layer.msg(res.msg , {time:1000});
										}
									}
								});
							}
						}
					}});
				});

				$("#licenseUpload").on('click' , function () {
					layer.fileManager({ callback : function(data){
							$("#licenseShow").attr("src" , data[0].url);
							$("#businessLicense").val(data[0].url);
						}
					});
				});
				$("#uploadAuth , #authShow").on('click' , function () {
					var $this = $(this);
					layer.fileManager({ callback : function(data){
						$("#uploadAuth").hide();
						$("#authShow").attr("src" , data[0].url);
						$("#authCertify").val(data[0].url);
						}
					});
				});
				dealBank();
			});
			function dealBank(){
				var rowNum=parseInt($(".bankDisplay").size()/3);
				for(var i=0;i<rowNum;i++){
					var dealIndex=3*i+2;
					$(".bankDisplay:eq("+dealIndex+")").css("margin-right","0px");
				}
			}
		</script>
	[#else]抱歉，请登录！[/#if]
 	<!-- 底部菜单-->
			[#include "/front/common/front_footerAzt.html"]
	</div>
</body>
</html>
